﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PH.Model
{
    public class QueryBase
    {
        /// <summary>
        /// 页大小
        /// </summary>
        public int PageSize { get; set; }
        /// <summary>
        /// 页索引
        /// </summary>
        public int PageIndex { get; set; }
        /// <summary>
        /// 查询关键字
        /// </summary>
        public string Key { get; set; }
        
        public Sort OrderBy { get; set; }

        public class Sort
        {
            public string Field { get; set; }
            public string Dir { get; set; }
        }
    }
}
